<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/underscore@1.13.3/underscore-umd-min.js"></script>
    <title>Document</title>
</head>

<body>
    <input type="text" id="ipt">
    <script src="./手写防抖.js"></script>
    <script src="./手写节流,js"></script>
    <script>
        const iptEl = document.querySelector("#ipt");
        let counter = 0;

        function iptChange(e) {
            console.log(`第${counter++}次点击`, this, e);
        }
        iptEl.oninput = throttle(iptChange, 10000);
    </script>
</body>

</html>